package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 绿地/行道树/古树名木  附件表
 *
 * @author code-generate
 * @date 2022-01-05
 */
@Data
@DbTable(tableName = "t_gre_file")
public class GreFile extends BaseEntity {
        /**
     * 关联表ID
     */
    @DbTableField(columnName = "c_main_id", dbType = DbTypeEnum.INTEGER)
    public Integer mainId ;

    /**
     * 历史记录ID
     */
    @DbTableField(columnName = "c_main_record_id", dbType = DbTypeEnum.INTEGER)
    public Integer mainRecordId ;

    /**
     * 文件Id
     */
    @DbTableField(columnName = "c_file_id", dbType = DbTypeEnum.VARCHAR)
    public String fileId ;

    /**
     * 文件名
     */
    @DbTableField(columnName = "c_file_name", dbType = DbTypeEnum.VARCHAR)
    public String fileName ;

    /**
     * 文件类型 0 其他 1 图片 2 word
     */
    @DbTableField(columnName = "c_file_type", dbType = DbTypeEnum.INTEGER)
    public Integer fileType ;

    /**
     * 文件后缀
     */
    @DbTableField(columnName = "c_file_suffix", dbType = DbTypeEnum.VARCHAR)
    public String fileSuffix ;

    /**
     * 业务类型 1 绿地 2 行道树 3 古树名木，4设施 5房屋
     */
    @DbTableField(columnName = "c_data_type", dbType = DbTypeEnum.INTEGER)
    public Integer dataType ;

    /**
     * 描述
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    public final static Integer TYPE_GRE_LAND = 1;
    public final static Integer TYPE_GRE_TREE = 2;
    public final static Integer TYPE_GRE_TREE_FAMOUS = 3;
    public final static Integer TYPE_PARK_COMPONENT = 4;
    public final static Integer TYPE_HOUSE_INFO = 5;

    public final static Integer TYPE_KNOWLEDGE = 101;
    public final static Integer TYPE_ACTIVITY_REGISTER = 102;
    public final static Integer TYPE_CLEANING = 103;

    /**
     * 业务类型-内业检查
     */
    public static final Integer TYPE_TASK_DOCUMENT = 100;

    /**
     * 业务类型-现场检查
     */
    public static final Integer TYPE_TASK_ON_SITE = 101;

    /**
     * 业务类型-内业检查-填报
     */
    public static final Integer TYPE_TASK_DOCUMENT_ANSWER = 102;

    /**
     * 业务类型-现场检查-填报
     */
    public static final Integer TYPE_TASK_ON_SITE_ANSWER = 104;
}
